<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<!DOCTYPE HTML>
<html >
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	<style type="text/css">
		.head {
			border-bottom: 1px solid #DDDDDD;
			font-size: 14px;
			font-weight: bold;
			margin-bottom: 8px;
			padding-bottom: 5px;
		}
		
		.wall {
			-moz-border-bottom-colors: none;
			-moz-border-image: none;
			-moz-border-left-colors: none;
			-moz-border-right-colors: none;
			-moz-border-top-colors: none;
			border-color:#DDDDDD;
			border-right: 1px solid #DDDDDD;
			border-style: none solid solid;
			border-width: medium 1px 1px;
			padding: 15px;
				
		}
	</style>
</head>
<body class="body" style="padding-top: 60px;" >
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a class="brand" href="#" style="color: #FFFFFF;">Kaishengit PMS</a>
			</div>
		</div>
	</div>
	
	<div class="container">
		<div class="row">
			<div class="span3">
				<div class="well" style="padding:8px 0;">
					<ul class="nav nav-list">
						<li class="nav-header">新Apple总部项目</li>
						<li class="divider"></li>
						<li >
							<a href="#">
								<i class="icon-home "></i>
								最新动态
							</a>
						</li>
						<li >
							<a href="goal.html">
								<i class="icon-flag"></i>
								目标
							</a>
						</li>
						<li class="active">
							<a href="document.html">
								<i class="icon-folder-open icon-white"></i>
								资料库
							</a>
						</li>
						<li >
							<a href="file.html">
								<i class=" icon-file"></i>
								文件共享
							</a>
						</li>
						<li >
							<a href="contact.html">
								<i class=" icon-user"></i>
								联系人
							</a>
						</li>
						<li >
							<a href="idea.html">
								<i class="icon-fire"></i>
								想法
							</a>
						</li>
						<li >
							<a href="#">
								<i class="icon-warning-sign"></i>
								Bug
							</a>
						</li>
						<li >
							<a href="#">
								<i class="icon-cog"></i>
								项目设置
							</a>
						</li>
					</ul>
				
				</div>
			</div>
			<div class="span9">
				<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
					<li class="active">
						<a href="" >
							<i class="icon-folder-open"></i>
							资料
						</a>
					</li >
					<li class="pull-right active">
						<i class="icon-plus"></i>
						<a class="link-black" href="project.jspx?m=newDocument">
						分享新资料
						</a>
					</li>
				</ul>
				<div class="wall" style="margin-bottom:20px;">
					<c:forEach items="${pageList.result }" var="d">
						<blockquote>
							<h4>
								<a href="project.jspx?m=showDocument&id=${d.id }">${d.title }</a>
							</h4>
							<p style="font-size:14px;line-height:1.5;">
								${d.content }
							</p>
							<small>${d.employee.username }发布于 ${d.interval }</small>
							
							<c:if test="${d.employee.id == cur_user.id}">
								<a title="编辑" href="project.jspx?m=editdocument&id=${d.id }">
								<i class="icon-pencil"></i>
								</a>
								<a href="project.jspx?m=deldocument&id=${d.id }" title="删除">
									<i class="icon-trash"></i>
								</a>
							</c:if>
							
						</blockquote>
					</c:forEach>
					&nbsp;&nbsp;共${pageList.totalPages}页，当前第${pageList.pageNum }/${pageList.totalPages}页 <br/>
					<div class="pagination pull-right"  style="margin:0px">
						<ul>
							<li><a href="project.jspx?m=document&p=1">首页</a></li>
							<li><a href="project.jspx?m=document&p=${pageList.pageNum - 1 }">上一页</a></li>
							<li><a href="project.jspx?m=document&p=${pageList.pageNum + 1 }">下一页</a></li>
							<li><a href="project.jspx?m=document&p=${pageList.totalPages}">尾页</a></li>
						</ul>
					</div>
					
					
					<div style="clear:both"></div>
				</div>
			</div>
		</div>
		
		
	</div>
	<script src="js/jquery.js"></script>
	<script src="js/bootstrap.min.js"></script>
	
</body>
</html>